package org.edu.modules.center.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;

@TableName("ve_teach_action_log")
@ApiModel(value="ve_teach_action_log对象", description=" 教学行为日志")
public class VeTeachActionLog
        implements Serializable
{
    private static final long serialVersionUID = 1L;
    @TableId(type=IdType.AUTO)
    @ApiModelProperty("主键")
    private Integer id;
    @ApiModelProperty("行为id")
    private Integer actionId;
    @ApiModelProperty("执行用户id,传0时为当前登录用户")
    private Integer userId;
    @ApiModelProperty("用户姓名")
    private String userName;
    @ApiModelProperty("执行行为者ip")
    private Integer actionIp;
    @ApiModelProperty("触发行为的表")
    private String model;
    @ApiModelProperty("触发行为的数据id，多个ID用逗号隔开")
    private String recordId;
    @ApiModelProperty("日志备注")
    private String remark;
    @ApiModelProperty("状态")
    private Integer status;
    @ApiModelProperty("执行行为的时间")
    private Integer createTime;
    @ApiModelProperty("终端ID")
    private Integer terminalid;
    @ApiModelProperty("子系统ID")
    private Integer appid;
    @ApiModelProperty("教学课程ID")
    private Integer tcid;
    @ApiModelProperty("多租户id")
    private Integer placeId;

    public VeTeachActionLog setUserId(Integer userId)
    {
        this.userId = userId;return this;
    }

    public VeTeachActionLog setActionId(Integer actionId)
    {
        this.actionId = actionId;return this;
    }

    public VeTeachActionLog setId(Integer id)
    {
        this.id = id;return this;
    }

    public String toString()
    {
        return "VeTeachActionLog(id=" + getId() + ", actionId=" + getActionId() + ", userId=" + getUserId() + ", userName=" + getUserName() + ", actionIp=" + getActionIp() + ", model=" + getModel() + ", recordId=" + getRecordId() + ", remark=" + getRemark() + ", status=" + getStatus() + ", createTime=" + getCreateTime() + ", terminalid=" + getTerminalid() + ", appid=" + getAppid() + ", tcid=" + getTcid() + ", placeId=" + getPlaceId() + ")";
    }

    public VeTeachActionLog setPlaceId(Integer placeId)
    {
        this.placeId = placeId;return this;
    }

    public VeTeachActionLog setTcid(Integer tcid)
    {
        this.tcid = tcid;return this;
    }

    public VeTeachActionLog setAppid(Integer appid)
    {
        this.appid = appid;return this;
    }

    public VeTeachActionLog setTerminalid(Integer terminalid)
    {
        this.terminalid = terminalid;return this;
    }

    public VeTeachActionLog setCreateTime(Integer createTime)
    {
        this.createTime = createTime;return this;
    }

    public VeTeachActionLog setStatus(Integer status)
    {
        this.status = status;return this;
    }

    public VeTeachActionLog setRemark(String remark)
    {
        this.remark = remark;return this;
    }

    public VeTeachActionLog setRecordId(String recordId)
    {
        this.recordId = recordId;return this;
    }

    public VeTeachActionLog setModel(String model)
    {
        this.model = model;return this;
    }

    public VeTeachActionLog setActionIp(Integer actionIp)
    {
        this.actionIp = actionIp;return this;
    }

    public VeTeachActionLog setUserName(String userName)
    {
        this.userName = userName;return this;
    }

    public int hashCode()
    {
        int PRIME = 59;int result = 1;Object $id = getId();result = result * 59 + ($id == null ? 43 : $id.hashCode());Object $actionId = getActionId();result = result * 59 + ($actionId == null ? 43 : $actionId.hashCode());Object $userId = getUserId();result = result * 59 + ($userId == null ? 43 : $userId.hashCode());Object $actionIp = getActionIp();result = result * 59 + ($actionIp == null ? 43 : $actionIp.hashCode());Object $status = getStatus();result = result * 59 + ($status == null ? 43 : $status.hashCode());Object $createTime = getCreateTime();result = result * 59 + ($createTime == null ? 43 : $createTime.hashCode());Object $terminalid = getTerminalid();result = result * 59 + ($terminalid == null ? 43 : $terminalid.hashCode());Object $appid = getAppid();result = result * 59 + ($appid == null ? 43 : $appid.hashCode());Object $tcid = getTcid();result = result * 59 + ($tcid == null ? 43 : $tcid.hashCode());Object $placeId = getPlaceId();result = result * 59 + ($placeId == null ? 43 : $placeId.hashCode());Object $userName = getUserName();result = result * 59 + ($userName == null ? 43 : $userName.hashCode());Object $model = getModel();result = result * 59 + ($model == null ? 43 : $model.hashCode());Object $recordId = getRecordId();result = result * 59 + ($recordId == null ? 43 : $recordId.hashCode());Object $remark = getRemark();result = result * 59 + ($remark == null ? 43 : $remark.hashCode());return result;
    }

    protected boolean canEqual(Object other)
    {
        return other instanceof VeTeachActionLog;
    }

    public boolean equals(Object o)
    {
        if (o == this) {
            return true;
        }
        if (!(o instanceof VeTeachActionLog)) {
            return false;
        }
        VeTeachActionLog other = (VeTeachActionLog)o;
        if (!other.canEqual(this)) {
            return false;
        }
        Object this$id = getId();Object other$id = other.getId();
        if (this$id == null ? other$id != null : !this$id.equals(other$id)) {
            return false;
        }
        Object this$actionId = getActionId();Object other$actionId = other.getActionId();
        if (this$actionId == null ? other$actionId != null : !this$actionId.equals(other$actionId)) {
            return false;
        }
        Object this$userId = getUserId();Object other$userId = other.getUserId();
        if (this$userId == null ? other$userId != null : !this$userId.equals(other$userId)) {
            return false;
        }
        Object this$actionIp = getActionIp();Object other$actionIp = other.getActionIp();
        if (this$actionIp == null ? other$actionIp != null : !this$actionIp.equals(other$actionIp)) {
            return false;
        }
        Object this$status = getStatus();Object other$status = other.getStatus();
        if (this$status == null ? other$status != null : !this$status.equals(other$status)) {
            return false;
        }
        Object this$createTime = getCreateTime();Object other$createTime = other.getCreateTime();
        if (this$createTime == null ? other$createTime != null : !this$createTime.equals(other$createTime)) {
            return false;
        }
        Object this$terminalid = getTerminalid();Object other$terminalid = other.getTerminalid();
        if (this$terminalid == null ? other$terminalid != null : !this$terminalid.equals(other$terminalid)) {
            return false;
        }
        Object this$appid = getAppid();Object other$appid = other.getAppid();
        if (this$appid == null ? other$appid != null : !this$appid.equals(other$appid)) {
            return false;
        }
        Object this$tcid = getTcid();Object other$tcid = other.getTcid();
        if (this$tcid == null ? other$tcid != null : !this$tcid.equals(other$tcid)) {
            return false;
        }
        Object this$placeId = getPlaceId();Object other$placeId = other.getPlaceId();
        if (this$placeId == null ? other$placeId != null : !this$placeId.equals(other$placeId)) {
            return false;
        }
        Object this$userName = getUserName();Object other$userName = other.getUserName();
        if (this$userName == null ? other$userName != null : !this$userName.equals(other$userName)) {
            return false;
        }
        Object this$model = getModel();Object other$model = other.getModel();
        if (this$model == null ? other$model != null : !this$model.equals(other$model)) {
            return false;
        }
        Object this$recordId = getRecordId();Object other$recordId = other.getRecordId();
        if (this$recordId == null ? other$recordId != null : !this$recordId.equals(other$recordId)) {
            return false;
        }
        Object this$remark = getRemark();Object other$remark = other.getRemark();return this$remark == null ? other$remark == null : this$remark.equals(other$remark);
    }

    public Integer getId()
    {
        return this.id;
    }

    public Integer getActionId()
    {
        return this.actionId;
    }

    public Integer getUserId()
    {
        return this.userId;
    }

    public String getUserName()
    {
        return this.userName;
    }

    public Integer getActionIp()
    {
        return this.actionIp;
    }

    public String getModel()
    {
        return this.model;
    }

    public String getRecordId()
    {
        return this.recordId;
    }

    public String getRemark()
    {
        return this.remark;
    }

    public Integer getStatus()
    {
        return this.status;
    }

    public Integer getCreateTime()
    {
        return this.createTime;
    }

    public Integer getTerminalid()
    {
        return this.terminalid;
    }

    public Integer getAppid()
    {
        return this.appid;
    }

    public Integer getTcid()
    {
        return this.tcid;
    }

    public Integer getPlaceId()
    {
        return this.placeId;
    }
}
